home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / msgq160s.arc / NEDIT.H < prev    next >
Text File  |  1991-10-26  |  720b  |  26 lines

  1. /*
  2.  * NEDIT.H - Buffer structure
  3.  *
  4.  * Msged/Q message editor for QuickBBS  Copyright 1990 by P.J. Muller
  5.  *
  6.  */
  7.  
  8. typedef struct _line {
  9.     char *text;             /* pointer to actual line text */
  10.     unsigned int block:1;    /* this is in a block */
  11.     unsigned int hide:1;    /* this is a hidden line */
  12.     unsigned int quote:1;    /* this is a quoted line */
  13.     int column;        /* if a block, starting column */
  14.     struct _line *prev;     /* previous line in BUFFER */
  15.     struct _line *next;     /* next line in BUFFER */
  16.     } LINE;
  17.     
  18. /*
  19.  * a BUFFER is simply a linked list of LINE
  20.  */
  21.  
  22. typedef struct _buffer {
  23.     LINE *first;        /* first line in buffer */
  24.         LINE *last;         /* last line in buffer */
  25.     } BUFFER;
  26.